/*
 * Copyright (c) 2020 pig4cloud Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pig4cloud.pig.auth;

import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 认证授权中心应用启动类
 * <p>
 * OAuth2 认证服务器，基于 Spring Authorization Server 实现
 * 负责处理整个系统的用户认证、授权和令牌管理
 * 支持多种认证方式：密码模式、短信验证码、社交登录等
 *
 * @author lengleng
 * @date 2025/05/30
 */
@EnablePigFeignClients  // 启用 Pig 定制的 Feign 客户端，用于服务间调用
@EnableDiscoveryClient  // 启用服务发现，将服务注册到 Nacos
@SpringBootApplication  // Spring Boot 应用标记，包含自动配置、组件扫描等
public class PigAuthApplication {

	/**
	 * 认证服务器启动入口
	 * 默认端口：3000
	 * 
	 * @param args 启动参数
	 */
	public static void main(String[] args) {
		SpringApplication.run(PigAuthApplication.class, args);
	}

}
